<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>交易记录管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/siteuseraccountlog/siteUserAccountLog/?orderBy=createTime desc">交易记录列表</a></li>
		<%-- <shiro:hasPermission name="siteuseraccountlog:siteUserAccountLog:edit"><li><a href="${ctx}/siteuseraccountlog/siteUserAccountLog/form">交易记录添加</a></li></shiro:hasPermission> --%>
	</ul>
	<form:form id="searchForm" modelAttribute="siteUserAccountLog" action="${ctx}/siteuseraccountlog/siteUserAccountLog/?orderBy=createTime desc" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>交易用户：</label>
				<form:input path="userId" htmlEscape="false" maxlength="11" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>交易用户</th>
				<th>交易类型</th>
				<th>交易时间</th>
				<th>入账方</th>
				<th>出账方</th>
				<th>交易金额</th>
				<th>手续费</th>
				<th>到账金额</th>
				<th>交易详情</th>
				<th>交易状态</th>
				<th>交易流水号</th>
				<th>活期转入流水号</th>
				<th>定期转入流水号</th>
				<th>更新时间</th>
				<th>入账信息</th>
				<th>出账信息</th>
				<%-- <shiro:hasPermission name="siteuseraccountlog:siteUserAccountLog:edit"><th>操作</th></shiro:hasPermission> --%>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="siteUserAccountLog">
			<tr>
				<%-- <td><a href="${ctx}/siteuseraccountlog/siteUserAccountLog/form?id=${siteUserAccountLog.id}">
					${siteUserAccountLog.userId}
				</a></td>
				<shiro:hasPermission name="siteuseraccountlog:siteUserAccountLog:edit"><td>
    				<a href="${ctx}/siteuseraccountlog/siteUserAccountLog/form?id=${siteUserAccountLog.id}">修改</a>
					<a href="${ctx}/siteuseraccountlog/siteUserAccountLog/delete?id=${siteUserAccountLog.id}" onclick="return confirmx('确认要删除该交易记录吗？', this.href)">删除</a>
				</td></shiro:hasPermission> --%>
				<td>${siteUserAccountLog.userId}</td>
				<td>${siteUserAccountLog.acctType == 1 ? "银行卡投资" : siteUserAccountLog.acctType == 2 ? "定期回款至银行卡" : siteUserAccountLog.acctType == 3 ? "活期赎回" : siteUserAccountLog.acctType == 4 ? "活期投资" : siteUserAccountLog.acctType == 5 ? "回款复投" : siteUserAccountLog.acctType == 6 ? "体验金收益" : siteUserAccountLog.acctType == 7 ? "活期收益" : siteUserAccountLog.acctType == 8 ? "活期加息券收益" : siteUserAccountLog.acctType == 9 ? "定期回款收益发放" : siteUserAccountLog.acctType == 10 ? "定期回款" : "未知"}</td>
				<td><fmt:formatDate value="${siteUserBuy.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td>${siteUserAccountLog.inAccount}</td>
				<td>${siteUserAccountLog.outAccount}</td>
				<td>${siteUserAccountLog.amount}</td>
				<td>${siteUserAccountLog.fee}</td>
				<td>${siteUserAccountLog.finalAmount}</td>
				<td>${siteUserAccountLog.info}</td>
				<td>${siteUserAccountLog.status == 1 ? "成功" : siteUserAccountLog.status == 2 ? "失败" : siteUserAccountLog.status == 3 ? "处理中" : "未知"}</td>
				<td>${siteUserAccountLog.orderId}</td>
				<td>${siteUserAccountLog.currnetOrder}</td>
				<td>${siteUserAccountLog.fixedOrder}</td>
				<td><fmt:formatDate value="${siteUserBuy.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td>${siteUserAccountLog.inMsg}</td>
				<td>${siteUserAccountLog.outMsg}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>